
/* List of all available attractions. */
var attractions;
/* Index of the current main attraction. */
var mainAttractionId;

void setup()
{
	size(800, 500);
	background(204);
	
	attractions = new Array();
	attractions.push(loadImage('img/grande_roue.jpg'));
	
	mainAttractionId = 0;
}


void draw()
{
	draw_left_side_attraction(attractions[(mainAttractionId-1+attractions.length)%attractions.length]);
	draw_main_attraction(attractions[mainAttractionId]);
	draw_right_side_attraction(attractions[(mainAttractionId+1)%attractions.length]);
}


void draw_left_side_attraction(attraction)
{
	image(attraction, 0, 0);
}

void  draw_main_attraction(attraction)
{
	image(attraction, (width-attraction.width)/2, 0);
}

void draw_right_side_attraction(attraction)
{
	image(attraction, width-attraction.width, 0);
}

